<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="demo.php" method="POST" name="name1">
        <label for="user">用户名：</label><input type="text" name="username" value="请输入用户名" id="user"><br>
        密码：<input type="password" name="password"><br>
        性别：<label for="nan">男 <input id="nan" type="radio" name="sex"> <label for="nv">女 <input id="nv" type="radio"
                    name="sex"><br>
                爱好：吃饭<input type="checkbox" name="hobby"> 睡觉<input type="checkbox" name="hobby"> 旅游<input
                    type="checkbox" name="hobby"><br>
                <input type="submit">
                <input type="reset"><br>
                <input type="button" value="获取短信验证码"><br>
                获取头像：<input type="file"><br>
                <h4>下拉表单元素</h4>
                籍贯：
                <select>
                    <option selected="selected">山东</option>
                    <option>北京</option>
                    <option>上海</option>
                    <option>天津</option>
                </select>
                <h4>文本域标签</h4>
                留言板:
                <textarea cols="50" rows="5">留言板
                </textarea>
    </form>
</body>

</html>